import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element-ui的样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//国际化
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'

import '@/assets/css/global.css'

createApp(App).use(store).use(router).use(ElementPlus,{locale,size: 'small'}).mount('#app')

//引入图标
//首先需要我们在终端下载图标库，再导入图标，再去需要引入图标的页面，如Login---->
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}